package com.xingkeduo.pojo.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

/**
 * 随星付收款类型
 */
@Getter
public enum GatheringType {

    HAIRCUT(1,"单人剪发服务"),
    BANGS(2,"单人刘海服务"),
    SENIOR(3,"单人Baber服务"),
    OTHER(4,"其他"),

    MAKE_UP_DIFFERENCE(5,"补差价"),
    //RETAIL(6,"零售补款"),
    ABNORMAL_RECEIPT(7,"异常收款");

    @EnumValue
    private int key;

    private String value;

    GatheringType(int key, String value) {
        this.key = key;
        this.value = value;
    }


    public static Map<String, String> typeMap(){
        HashMap<String, String> map = new HashMap<>();
        GatheringType[] values = GatheringType.values();
        for (GatheringType gatheringType : values) {
            map.put(gatheringType.toString(), gatheringType.getValue());
        }
        return map;
    }
}
